%Returns number of channels in a given run
%path is the location of the run_XX folder
function  number_channels=number_channels(path)

filename=[path '\data.h5'];
inf=hdf5info(filename);
number_channels=length(inf.GroupHierarchy.Datasets);


    